def Read_document(document):
    try:
        with open(document) as abc:
            abcd = abc.read()
    except FileNotFoundError:
        print( "Sorry, the file " + document + " does not exist.")
    else:
        words = abcd.split()
        word = len(words)
        print("The file " + document + " has about " + str(word) + " words.")
documents = ['guigushi.txt','djdh.txt','langlail.txt','tonghua.txt']
for document in documents:
    Read_document(document)
